package com.study.java.dao;

import com.study.java.domain.User;

/**
* @Name: UserDao
* @Description: 用户信息操作DAO接口
* @Author: XXX
* @CreateDate: XXX
* @Version: V1.0
 */
public interface UserDao {
	
	/**
	* @Name: getUserByUsername
	* @Description: 根据用户名获取用户信息
	* @Author: XXX
	* @Version: V1.0
	* @CreateDate: XXX
	* @Parameters: @param username
	* @Return: User
	 */
	User getUserByUsername(String username) ;
	
	/**
	* @Name: getUserByUsernameAndPassword
	* @Description: 根据用户名和密码获取用户信息
	* @Author: XXX
	* @Version: V1.0
	* @CreateDate: XXX
	* @Parameters: @param username
	* @Parameters: @param password
	* @Return: User
	 */
	User getUserByUsernameAndPassword(String username, String password) ;
	
	/**
	* @Name: addUser
	* @Description: 添加用户信息到xml
	* @Author: XXX
	* @Version: V1.0
	* @CreateDate: XXX
	* @Parameters: @param user
	* @Return: void
	 */
	void addUser(User user) ;

}
